Skip to content

Don't continue processing on client error#20

Merged
kommendorkapten merged 4 commits into
mainfrom
client-error
Jan 20, 2026
Merged

Don't continue processing on client error#20
kommendorkapten merged 4 commits into
mainfrom
client-error

Conversation

@kommendorkapten
Copy link
Copy Markdown
Member

When a client error such as 404 is returned, make sure the event is not added back to the work queue.

@kommendorkapten kommendorkapten requested a review from a team as a code owner January 20, 2026 13:28
Copilot AI review requested due to automatic review settings January 20, 2026 13:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents client errors (4xx responses except 429) from being retried by introducing a new ClientError type that signals non-retryable failures. When such errors occur, the event is not requeued for processing.

Changes:

  • Introduced a ClientError type to wrap non-retryable client errors
  • Modified error handling to return ClientError for 4xx responses (except 429)
  • Updated the controller to check for ClientError and return early without requeuing

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
pkg/deploymentrecord/client.go Added ClientError type and updated PostOne to return it for client errors
internal/controller/controller.go Added error handling to detect ClientError and prevent requeuing
Dockerfile Updated golang base image SHA256 hash

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/deploymentrecord/client.go
malancas
malancas previously approved these changes Jan 20, 2026
Copy link
Copy Markdown

@malancas malancas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md Outdated
Comment thread pkg/metrics/prom.go Outdated
@kommendorkapten kommendorkapten merged commit 9012aa2 into main Jan 20, 2026
7 checks passed
@kommendorkapten kommendorkapten deleted the client-error branch January 20, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants